﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using SPWeiBo.Utilities;

namespace SPWeiBo.BusinessEntities
{
    internal class FollowingRelation
    {
        public String FollowerLoginName { get; set; }
        public String FollowerName { get; set; }
        public String FollowedLoginName { get; set; }
        public String FollowedName { get; set; }

        public override String ToString()
        {
            if (!String.IsNullOrEmpty(FollowerName) && !String.IsNullOrEmpty(FollowedName))
            {
                return String.Format("{0} follow {1}", FollowerName, FollowedName);
            }
            else
            {
                return base.ToString();
            }
        }
    }
}
